package com.scy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/default")
public class DefaultController {

    @RequestMapping(value = "/msg",produces = {"text/plain;charset=UTF-8"})
    @ResponseBody
    public String defaultMsg() {
        System.out.println("DefaultController的defaultMsg执行了");
        return "msg2";
    }
}
